<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:choose>
<c:when test="${fn:length(types)>0}">
 <select name="type2" onchange="show3(this.value)">
 <option value="0">请选择分类</option>
                            <c:forEach items="${types}" var="type">
                            <option value="${type.id}">${type.name}</option>
                            </c:forEach>
                            </select>
</c:when>
<c:otherwise>
</c:otherwise>
</c:choose>
